Skip to content

chore(deps)!: bump supported python versions to 3.11 - 3.14#492

Merged
tybulewicz merged 4 commits into
masterfrom
ttybulew/bump-python
Mar 2, 2026
Merged

chore(deps)!: bump supported python versions to 3.11 - 3.14#492
tybulewicz merged 4 commits into
masterfrom
ttybulew/bump-python

Conversation

@tybulewicz

@tybulewicz tybulewicz commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Removes support for python 3.10.
Updates the project’s declared and CI-tested Python support to newer versions (3.11–3.14) and adjusts tooling/config to match the upgraded environment, with a few small refactors/formatting tweaks.

Fixes #489

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@github-actions github-actions Bot added tests Related to tests python python related changes build Related to build scripts labels Feb 25, 2026
@tybulewicz tybulewicz requested a review from Copilot February 25, 2026 12:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project’s declared and CI-tested Python support to newer versions (3.11–3.14) and adjusts tooling/config to match the upgraded environment, with a few small refactors/formatting tweaks.

Changes:

  • Bump requires-python to >=3.11, update PyPI classifiers, and set Ruff target-version to py314.
  • Update CI/pre-commit to run against Python 3.11–3.14 and use a newer Ruff pre-commit hook.
  • Minor code cleanups in tests/utilities/models aligned with formatting/linting changes.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pyproject.toml Raises minimum Python, updates classifiers/deps, and updates Ruff configuration/ignores + target version.
.github/workflows/pre_commit.yml Drops 3.10 from the matrix and adds 3.14 for lint/tests jobs.
.pre-commit-config.yaml Switches Ruff hook repo and bumps the hook revision.
.python-version Updates local/dev default Python version to 3.14.
src/model_api/models/parameters.py Adjusts exception handling in __dir__ (currently introduces a syntax error).
src/model_api/models/classification.py Refactors label construction and removes a noqa (likely reintroduces a Ruff PD011 false-positive).
src/model_api/models/yolo.py Minor string formatting change in parameter description.
tools/model_converter/model_converter.py Minor error message formatting change.
tests/accuracy/test_accuracy.py Assertion formatting tweak.
tests/accuracy/download_models.py Simplifies image download write logic using Path.write_bytes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/model_api/models/parameters.py Outdated
Comment thread src/model_api/models/classification.py Outdated
@tybulewicz tybulewicz marked this pull request as ready for review February 25, 2026 16:45
@tybulewicz tybulewicz requested review from a team as code owners February 25, 2026 16:45
@tybulewicz tybulewicz force-pushed the ttybulew/bump-python branch from 420cf74 to 6d97fdd Compare March 2, 2026 12:11
@tybulewicz tybulewicz enabled auto-merge March 2, 2026 12:12
@tybulewicz tybulewicz changed the title chore(deps): bump supported python versions to 3.10 - 3.14 chore(deps): bump supported python versions to 3.11 - 3.14 Mar 2, 2026
@tybulewicz tybulewicz changed the title chore(deps): bump supported python versions to 3.11 - 3.14 chore(deps)!: bump supported python versions to 3.11 - 3.14 Mar 2, 2026
@tybulewicz tybulewicz added this pull request to the merge queue Mar 2, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 2, 2026
@tybulewicz tybulewicz added this pull request to the merge queue Mar 2, 2026
Merged via the queue into master with commit 29a0535 Mar 2, 2026
29 checks passed
@tybulewicz tybulewicz deleted the ttybulew/bump-python branch March 2, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Related to build scripts python python related changes tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump python version

4 participants